//
//  LocalJSONAnalytical.m
//  TestApp
//
//  Created by dllo on 16/10/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LocalJSONAnalytical.h"

@implementation LocalJSONAnalytical
//
+ (NSDictionary *)JSONAnalyticalWithFileName:(NSString *)fileName
{
    NSString *path = [[NSBundle mainBundle]pathForResource:fileName ofType:@"json"];
    NSData *data = [NSData dataWithContentsOfFile:path];
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:(NSJSONReadingMutableContainers) error:nil];
    return dic;
}

@end
